import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '@/views/HomeView.vue'
import communityView from '@/views/communityView.vue'
import courseView from '@/views/courseView.vue'
import MeView from '@/views/MeView.vue'
import FeatureRecommendation from '@/components/FeatureRecommendation.vue'
import LoginView from '@/components/LoginView.vue'
import SearchView from '@/components/SearchView.vue'
import searchItem from '@/components/SearchItem.vue'
import HotelDetails from '@/components/HotelDetails.vue'
import DetaisOrder from '@/components/DetaisOrder.vue'
import MyOrder from '@/components/MyOrder.vue'
import ChooseArea from '@/components/ChooseArea.vue'
import HotelTypeList from '@/components/HotelTypeList.vue'
import productDetails from '@/components/ProductDetails.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/communityView',
      name: 'communityView',
      component: communityView
    },
    {
      path: '/courseView',
      name: 'courseView',
      component: courseView
    },
    {
      path: '/MeView',
      name: 'MeView',
      component: MeView
    },
    {
      path: '/FeatureRecommendation',
      name: 'FeatureRecommendation',
      component: FeatureRecommendation
    },
    {
      path: '/LoginView',
      name: 'LoginView',
      component: LoginView
    },
    {
      path: '/SearchView',
      name: 'SearchView',
      component: SearchView
    },
    {
      path: '/searchItem',
      name: 'searchItem',
      component: searchItem
    },
    {
      path: '/HotelDetails',
      name: 'HotelDetails',
      component: HotelDetails
    },
    {
      path: '/DetaisOrder',
      name: 'DetaisOrder',
      component: DetaisOrder
    },
    {
      path: '/MyOrder',
      name: 'MyOrder',
      component: MyOrder
    },
    {
      path: '/ChooseArea',
      name: 'ChooseArea',
      component: ChooseArea
    },
    {
      path: '/HotelTypeList',
      name: 'HotelTypeList',
      component: HotelTypeList
    },
    {
      path: '/productDetails',
      name: 'productDetails',
      component: productDetails
    },
  ]
})

export default router
